var msgs = new Array(
	"iGoogle Alternative...Try this.." ); // No comma after last ticker msg

 var msg_url = new Array(
 	"http://www.portaltab.com" ); // No comma after last ticker url

var barwidth='225px' //Enter main bar width in px or %
var setdelay=9000 //Enter delay between msgs, in mili-seconds
var mouseover_color='#FFFFFF' //#F3FAFF Specify highlight color
var mouseout_color='#FFFFFF' //Specify default color
var mouseover_text='#0044CC'
var mouseout_text='#898994'
/////////////////////////////////////////////////////////////////////

var count=0;
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||ns6){
document.write('<form name="news_bar" id="container"> <input type="button" value="&#171;" onclick="moveit(0)" style="width:20px; height:17px;padding:0; background-color:transparent; border:0px;" name="previous" title="Previous"><input type="button" value="&#187;" onclick="moveit(1)" style="width:20px; height:17px; padding:0; background-color:transparent; border:0px;" name="next" title="Next"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#898994;background:#FFFFFF; width:'+barwidth+'; height:17px; border-width:0; border-color:#000000; cursor:hand" onmouseover="this.style.background=mouseover_color; this.style.color=mouseover_text" onmouseout="this.style.background=mouseout_color; this.style.color=mouseout_text"> </form>');
}
else{
document.write('<form name="news_bar"><input type="button" value="Prev" onclick="moveit(0)">')
if (navigator.userAgent.indexOf("Opera")!=-1)
document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
else
document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
}

function init_news_bar(){
  document.news_bar.news_bar_but.value=msgs[count];
}
//moveit function by Dynamicdrive.com
function moveit(how){
if (how==1){ //cycle foward
if (count<msgs.length-1)
count++
else
count=0
}
else{ //cycle backward
if (count==0)
count=msgs.length-1
else
count--
}
document.news_bar.news_bar_but.value=msgs[count];
}

setInterval("moveit(1)",setdelay)

function goURL(){
 parent.location.href=msg_url[count];
}

init_news_bar();